package cn.tedu.csmall.passport.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 管理员登录的DTO类
 *
 * @author Chen
 * @since 2023/2/7 17:12:12
 */
@Data
public class AdminLoginDTO implements Serializable {

    /**
     * 用户名
     */
    @NotNull(message = "登录失败，必须提交用户名！")
    @ApiModelProperty(value = "用户名", required = true, example = "root")
    private String username;
    /**
     * 密码（原文）
     */
    @NotNull(message = "登录失败，必须提交密码！")
    @ApiModelProperty(value = "密码", required = true, example = "123456")
    private String password;
}
